package cn.mymall.constant;

public enum ResultCodeConstant {
    SUCCESS("200","操作成功"),
    RE_LOGIN("-100","请重新登录"),
    LOGIN_AUTH_INVILID("-101","登录授权已失效，请重新登录"),

    PARAMS_NOT_EXISTS("-200","缺少必要参数"),

    NO_PREMISSION("-300","无权限"),

    RESOURCE_NOT_EXISTS("-404","访问的资源不存在"),

    UNKNOW_ERROR("-500","系统异常，请稍后重试"),
    BUSINESS_ERROR("-501","业务异常"),
    NET_WORK_ERROR("-502","网络异常，请稍后重试");




    private String code;
    private String message;
    private ResultCodeConstant(String code, String message){
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
